/*!
 * TidyBlog 2.0
 * Article detail page - v1.0 (2013-10-05T15:56:06+0800)
 * https://code.google.com/p/tidyblog/ | Released under MIT license
 */
define(function(require, exports, module) { 'use strict';

require('/common/pagebase/1.0.x/');

var $ = require('dom/1.0.x/'),
	snsShare = require('/common/snsshare/1.0.x/'),
	Comment = require('/common/comment/1.0.x/');

new Comment({
	listWrapper: $('#comment-list > div'),
	form: $('#comment-form form')
});

var title = $('title').html();
$('a[data-snsname]').each(function(a) {
	a.target = '_blank';
	a.href = snsShare[this.getAttribute('data-snsname')](title, window.location.href);
});

});